package com.example.tests;

import java.util.Set;
import org.testng.annotations.Test;


public class GroupCreationTests extends TestBase {
	@Test
	public void testValidGroupCanBeCreated() throws Exception {
		//preparation
		GroupObject validGroup = new GroupObject("NewGroupName", "NewGroupHeader", "NewGroupFooter");
		Set<GroupObject> oldList = app.getGroupHelper().getGroups();
		//action
		app.getGroupHelper().createGroup(validGroup);
		//verification
		Set<GroupObject> newList = app.getGroupHelper().getGroups();
		verifyIsGroupAdded(oldList, validGroup, newList);
	}
	
	private void verifyIsGroupAdded(Set<GroupObject> oldList,
			GroupObject validGroup, Set<GroupObject> newList) {
		// TODO Auto-generated method stub
	}

	@Test
	public void testGroupWithEmptyDataCanBeCreated() throws Exception {
		GroupObject emptyDataGroup = new GroupObject("", "", "");
		app.getGroupHelper().createGroup(emptyDataGroup);
		//validate
	}
}